package com.example.housingRentalSystem.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import nonapi.io.github.classgraph.json.Id;

import java.util.Date;
import java.util.List;

/**
 * @author 王硕
 */
@Data
@ApiModel(value = "房屋实体")
public class House {
    @Id
    @ApiModelProperty(name = "主键")
    private Integer id ;

    @ApiModelProperty(name = "创建时间")
    private Date createTime ;

    @ApiModelProperty(name = "房东id")
    private Integer ownerId ;

    @ApiModelProperty(name = "出租类型：整租whole/合租share")
    private String rentType ;

    @ApiModelProperty(name = "房屋名称")
    private String title ;

    @ApiModelProperty(name = "详细描述内容")
    private String  content ;

    @ApiModelProperty(name = "城市名称")
    private String city ;

    @ApiModelProperty(name = "详细地址，具体门牌号")
    private String address ;

    @ApiModelProperty(name = "月租金")
    private Integer monthRent ;

    @ApiModelProperty(name = "状态：1未租出 2已租出 3已下架 -1已删除 -2待审核 -3审核不通过")
    private Integer status ;

    @ApiModelProperty(name = "房产证号")
    private String certificate ;

    @ApiModelProperty(name = "卫生间数量")
    private Integer toilet ;

    @ApiModelProperty(name = "厨房数量")
    private Integer kitchen ;

    @ApiModelProperty(name = "客厅数量")
    private Integer livingRoom ;

    @ApiModelProperty(name = "卧室数量")
    private Integer bedroom ;

    @ApiModelProperty(name = "是否有空调 1有 0无")
    private Integer conditioner ;

    @ApiModelProperty(name = "面积")
    private Double area ;

    @ApiModelProperty(name = "当前所在楼层数")
    private Integer floor ;

    @ApiModelProperty(name = "房子最大楼层数")
    private Integer maxFloor ;

    @ApiModelProperty(name = "是否有电梯 1是0否")
    private Integer elevator ;

    @ApiModelProperty(name = "建成年份")
    private Integer  completionYear ;

    @ApiModelProperty(name = "朝向")
    private String direction ;

    @ApiModelProperty(value = "经度")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    private Double latitude;

    @ApiModelProperty(name = "联系人姓名")
    private String contactName ;

    @ApiModelProperty(name = "联系人手机")
    private String contactPhone ;

    @ApiModelProperty(name = "更新时间")
    private Date  updateTime;

    @ApiModelProperty(name = "图片列表")
    private List<String> houseImageList;
}
